package Stoplicht;

import java.awt.*;
import javax.swing.*;

@SuppressWarnings("serial")
public class Tekenpaneel extends JPanel
{
	public Tekenpaneel()
	{
		
	}
	public void paintComponent(Graphics g)
	{
		setBackground(Color.MAGENTA);
		super.paintComponent(g);
		g.setColor(Color.BLACK);
		g.drawRect(10, 10, 110, 320);
		g.fillRect(10, 10, 110, 320);
		g.drawRect(55, 330, 20, 200);
		g.fillRect(55, 330, 20, 200);
		
		g.setColor(Color.WHITE);
		g.fillRect(56, 331, 19, 19);
		g.fillRect(56, 371, 19, 19);
		g.fillRect(56, 411, 19, 19);
		g.fillRect(56, 451, 19, 19);
		g.fillRect(56, 491, 19, 19);
		
		g.setColor(Color.RED);
		g.drawOval(20, 20, 90, 90);
		g.fillOval(20, 20, 90, 90);
		
		g.setColor(Color.YELLOW);
		g.drawOval(20, 120, 90, 90);
		g.fillOval(20, 120, 90, 90);
		
		g.setColor(Color.GREEN);
		g.drawOval(20, 220, 90, 90);
		g.fillOval(20, 220, 90, 90);
	}
}
